package com.allqj.sfx.ddd.member.infrastructure.po;

import com.allqj.sfx.infrastructure.po.BaseDO;
import org.hibernate.annotations.GenericGenerator;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * @author sjw
 * @className TenantDO
 * @date 2022/7/28 17:04
 * @description: 租户机构信息
 */
@Entity
@Table(name = "code_tenant")
public class TenantDO extends BaseDO {
    @Id
    @GenericGenerator(name = "autoId", strategy = "native")
    @GeneratedValue(generator = "autoId")
    private Integer id;
    // 名称
    private String name;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
}
